<?php

namespace app\staff\model;

use think\admin\Model;
use think\db\exception\DataNotFoundException;
use think\db\exception\DbException;
use think\db\exception\ModelNotFoundException;

class StaffNavModel extends Model
{
    protected $connection = "mysql_app";

    protected $table = "t_staff_nav";

    /**
     * 获取所有标签
     * @param array $map
     * @return array
     * @throws DataNotFoundException
     * @throws DbException
     * @throws ModelNotFoundException
     */
    public static function items(array $map = []): array
    {
        return static::mk()->where($map)->select()->toArray();
    }

}